package com.erpx.api.stock;

import com.erpx.api.CommonConstants;
import com.erpx.api.WdtClient;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * 查询待同步的库存 数据
 */
public class QueryStockChangeService {

    public static void queryStockChange() throws Exception {
        WdtClient client = new WdtClient(CommonConstants.sid, CommonConstants.appkey, CommonConstants.appSecret, CommonConstants.baseUrl);

        Map<String, String> params = new HashMap<String, String>();
        params.put("shop_id", "13");
        params.put("limit", "100");
        try {
            String response = client.execute("api_goods_stock_change_query.php", params);
            System.out.println(response);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }


}
